<?php
session_start();
$connectadmin = mysql_connect("14.63.219.99", "cam", "5678") or die("Không kết nối được database");
		mysql_select_db("admin", $connectadmin);
		mysql_query("set names 'utf8'");
		

$namecomp = $_REQUEST['compname'];
$email = $_REQUEST['email'];
$phone = $_REQUEST['phone'];
$website = $_REQUEST['website'];
$address = $_REQUEST['address'];
$business = $_REQUEST['business'];
$corporate = $_REQUEST['corporate'];

if(isset($_REQUEST['updateprofilecomp'])){
$sqlupdate = "update ac_eli_manager set PartnerName='$namecomp',Email='$email',Phone='$phone',Website='$website',
	Address='$address',BusinessNumber='$business',CorporateNumber='$corporate' where DatabaseName='elihan'";
mysql_query($sqlupdate);

}

mysql_close($connectadmin);

if(isset($_REQUEST['updateprofilecomp'])){
	$_SESSION['alert'] ="";
	header("Location: ../../companyprofileAdmin.php");
	
}
?>
